package overun.service.impl;

import org.springframework.stereotype.Service;
import overun.service.ValueSetService;

import java.util.HashMap;
import java.util.Map;

@Service
public class ValueSetServiceImpl implements ValueSetService {


    @Override
    public String[] getValueByKeyWord(String keyWord) {
        return new String[]{"男" , "女"};
    }


    @Override
    public Map<String , String> getValueByKeyWord2(String keyWord) {

        Map<String, String> gander = new HashMap<>();
        gander.put("0", "女");
        gander.put("1", "男");
        return gander;
    }

    @Override
    public Map<String , String> getValueByKeyWord3(String keyWord) {

        Map<String, String> gander = new HashMap<>();
        gander.put("女", "0");
        gander.put("男", "1");
        return gander;
    }
}
